package com.mk.mapper;

import com.mk.base.mapper.BaseMapper;
import com.mk.model.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 3:30 PM 3/13/18
 */
@Repository
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> findRoleByUsername(@Param("username") String username,@Param("isDeleted") Integer able);

    List<Role> findByUserId(@Param("userId") Long userId,@Param("isDeleted") Integer able);
}
